﻿#ifndef _MSGID_H_
#define _MSGID_H_

#ifdef __cplusplus
extern "C" {
#endif
//server <-> client message
#define MSG_ID_NEW_CONNECT_REQ					100
#define MSG_ID_NEW_CONNECT_RES					101
#define MSG_ID_NOTIFY_NEW_USER_ADDED			102

#define MSG_ID_USR_READY_REQ					200
#define MSG_ID_USR_READY_RES					201

#define MSG_ID_GAMESTART_CMD					300
#define MSG_ID_USER_FIRST_NEXT					301
#define MSG_ID_USER_NEW_SPAREPART_NEXT			302
#define MSG_ID_DO_PILE_CMD						303
#define MSG_ID_ERASE_FULL_ROW_CMD				304

#define MSG_ID_KEY_PRESS_REQ					400
#define MSG_ID_KEY_PRESS_RES					401

#define MSG_ID_PILE_AUTO_DOWN_REQ				500
#define MSG_ID_PILE_AUTO_DOWN_RES				501

#define MSG_ID_TEST_REQ							60000
#define MSG_ID_TEST_RES							60001

#define MSG_ID_DEBUG_PILE1						60002


//Internal Msg
#define MSG_ID_NOTIFY_CLIENT_SOCKET				30000
#define MSG_ID_PREPARE_READY					30001
#define MSG_ID_SET_BTN							30002
#define MSG_ID_NOTIFY_KEY_DOWN					30003
#define MSG_ID_NOTIFY_VIEW_ATOMS_CHANGED		30004

#ifdef __cplusplus
}
#endif
#endif
